$f: 19.2;

.sec1 {
  padding: 150/$f+vw 0 75/$f+vw;
  h1 {
    color: #454545;
    text-align: center;
    font-size: 64/$f+vw;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 28/$f+vw;
  }
  p {
    width: 980/$f+vw;
    color: #454545;
    text-align: center;
    font-size: 16/$f+vw;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5; /* 146.25% */
    margin: 0 auto 40/$f+vw;
  }
  .flex {
    display: flex;
    align-items: center;
    justify-content: center;
    a {
      display: block;
      color: #C60C3E;
      text-align: center;
      font-size: 30/$f+vw;
      font-style: normal;
      font-weight: 400;
      line-height: 34/$f+vw; /* 113.333% */
      text-transform: uppercase;
      margin-right: 30/$f+vw;
      position: relative;
      &:after {
        content: "";
        width: 2px;
        height: 80%;
        background: #454545;
        position: absolute;
        top: 0;
        top: 50%;
        transform: translateY(-50%);
        right: -16/$f+vw;
      }
      &:nth-last-child(1) {
        margin-right: 0;
        &:after {
          display: none;
        }
      }
    }

  }
}
.section {
  padding-bottom: 100/$f+vw;
  .proImg {
    width: 100%;
    position: relative;
    background-image: url(../images/b1.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 527px;
    background-size: cover;
    background-position: center;
    img {
      display: block;
      width: 100%;
    }

    h2 {
      color: #FFF;
      font-size: 51/$f+vw;
      font-weight: 500;
      margin: 0;
      text-transform: uppercase;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 370/$f+vw;
    }
  }
  &.section2{
    .proImg{
      background-image: url(../images/b2.png);
    }
  }
  &.section3{
    .proImg{
      background-image: url(../images/b3.png);
    }
  }
  .flex {
    width: 1180/$f+vw;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40/$f+vw 0;
    .img {
      width: 580/$f+vw;
      img {
        display: block;
        width: 100%;
      }
    }
    .text {
      width: 580/$f+vw;
      h5 {
        color: #454545;
        font-size: 28/$f+vw;
        font-style: normal;
        font-weight: 600;
        line-height: 1.2;
        text-transform: uppercase;
        margin: 0 0 20/$f+vw;
        white-space: nowrap;
      }
      .info {
        min-height: 110/$f+vw;
        margin-bottom: 30/$f+vw;
        p {
          color: #454545;
          font-size: 16/$f+vw;
          font-style: normal;
          font-weight: 400;
          line-height: 1.5;
        }
      }
      a {
        display: block;
        padding: 10/$f+vw 40/$f+vw;
        color: #FFF;
        text-align: center;
        font-size: 16/$f+vw;
        font-style: normal;
        font-weight: 400;
        line-height: 1.5; /* 146.25% */
        text-transform: uppercase;
        background-color: #C8161E;
        transform: skewX(-5deg);
        border-radius: 5px;
        transition: all 600ms;
        width: fit-content;
        p {
          transform: skewX(5deg);
          width: fit-content;
        }
        &:hover{
          background-color: rgba(210, 9, 43, .8);
        }
      }
    }
  }
}
@media screen and (max-width: 1024px){
  .home {
    padding-top: 60px;
    .sec1 {
      padding: 30px 0;
      h1 {
        font-size: 24px;
        margin-bottom: 20px;
      }
      p {
        font-size: 12px;
        margin-bottom: 15px;
      }
      .flex {
        a {
          font-size: 12px;
          line-height: 1.2;
          margin-right: 20px;
          &:after {
            right: -12px;
          }
        }
      }
    }
    .section {
      .proImg {
        h2 {
          font-size: 24px;
          left: 5vw;
        }
      }
      .flex {
        flex-direction: column;
        .img {
          width: 100%;
          margin-bottom: 20px;
        }
        .text {
          width: 100%;
          text-align: center;
          h5 {
            font-size: 18px;
          }
          .info {
            p {
              font-size: 12px;
            }
          }
          a {
            margin: auto;
            font-size: 12px;
            padding: 5px 10px;
            p {
              font-size: 12px;
            }
          }
        }
      }
    }
  }
}
@media screen and (max-width: 768px){
  .home {
    .section {
      .proImg {
        height: 300px;
        img {
          height: 100%;
          object-fit: cover;
        }
      }
      .flex {
        width: 90%;
        .text {
          h5 {
            white-space: unset;
            margin-bottom: 20px;
          }
          .info {
            p {
              margin-bottom: 15px;
            }
          }
        }
      }
    }
  }
  .sec1 {
    width: 90%;
    margin: auto;
    p {
      width: 100%;
    }
  }
}
